#include "collide.hpp"

int Rand(int low, int high){
    uniform_int_distribution<int> u(low, high);
    return u(e);
}

int D(int n){
    return Rand(1, n);
}

Collidable::Collidable():_type(COLLI_UNKNOWN){}

bool Collidable::HasColliType(ColliType type){
    return _type&type;
}

void Collidable::SetColliType(ColliType type){
    _type |= type;
}

void Collidable::UnsetColliType(ColliType type){
    _type &= ~type;
}
